Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be more strict with Mypy #293

Merged
merged 6 commits into from
Jan 5, 2022
Merged

Be more strict with Mypy #293

merged 6 commits into from
Jan 5, 2022

Conversation

tetienne
Copy link
Collaborator

@tetienne tetienne commented Jan 3, 2022

No description provided.

@github-actions github-actions bot added the bug Something isn't working label Jan 3, 2022
@iMicknl iMicknl marked this pull request as ready for review January 5, 2022 13:29
@@ -267,9 +267,15 @@ def __len__(self) -> int:
class State:
name: str
type: DataType
value: str | None = None
value: None | int | float | str | bool
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tetienne I think this was the mistake that messed up the core PR...

@iMicknl iMicknl merged commit 2fa95af into main Jan 5, 2022
@iMicknl iMicknl deleted the fix/mypy/strict branch January 5, 2022 13:43
lambda: boto3.client(
"cognito-idp", config=Config(region_name=NEXITY_COGNITO_REGION)
),
client = boto3.client(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tetienne why did this one get removed? This is currently breaking Nexity login.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was a typing error, and cannot found someone using our syntax, while this one yes :S

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I resolved it in a new PR :)

tetienne added a commit that referenced this pull request Feb 14, 2023
* Be more strict with mypy

* Update State definition

* fix one mypy error

* Remove (hopefully) unneccessary Lambda

* Fix mypy issues

* Improve mypy typing

Co-authored-by: Mick Vleeshouwer <mick@imick.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants